package io.github.talelin.latticy.service.feign;

import io.github.talelin.latticy.dto.order.PageListDTO;
import io.github.talelin.latticy.dto.order.TakeDownPageListDTO;
import io.github.talelin.latticy.vo.FindResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @ClassName：OrderFeignService
 * @Author: ljj
 * @Date: 2022/8/10 10:05
 */
@FeignClient(value = "oms-server")
public interface OrderFeignService {

    @PostMapping("/v1/order/takeDownPageList")
    FindResultVO takeDownPageList(@RequestBody TakeDownPageListDTO pageListDTO);

    @GetMapping("/v1/order/findById/{id}")
    FindResultVO findById(@PathVariable Long id);

    @GetMapping("/v1/order/pageList")
    FindResultVO pageList(PageListDTO pageListDTO);

    @PostMapping("/v1/order/findByIds")
    FindResultVO findByIds(List<Long> orderOns);
}
